package corenlp;

import edu.stanford.nlp.simple.Sentence;

import java.util.List;

/**
 * Created by common on 2017/4/6.
 */
public class SimplePipelineExample {

    public static void main(String[] args){
        Sentence sent = new Sentence("Lucy is in the sky with diamonds.");
        List<String> nerTags = sent.nerTags();  // [PERSON, O, O, O, O, O, O, O]
        String firstPOSTag = sent.posTag(0);   // NNP

        System.out.println("firstPOSTag = " + firstPOSTag);
    }



}
